export const serverURL = process.env.VUE_APP_BMS_URL

export function mergeBms(url) {
  return `${serverURL}/api/bms/biz/${url}`
}

export function mergeOms(url) {
  return `${serverURL}/api/oms/biz/${url}`
}

/**
 * @Description: 信贷
 * @author tangyuhui
 * @date 2021/5/8 15:36
 */
export function mergeXd(url) {
  if (process.env.NODE_ENV === 'development') {
    return `/xdApi/${url}`
  } else {
    return `${serverURL}/api/bizconfig/biz/${url}`
  }
}

// 演示系统：demo. 做数据mock了
export function mergeDemo(url) {
  return `${serverURL}/api/demo/biz/${url}`
}
